home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / System Extensions / Color Picker 2.0 / ColorPickerComponentPublic.h < prev   
Encoding:
C/C++ Source or Header  |  1994-03-28  |  2.1 KB  |  86 lines  |  [TEXT/MPS ]

  1. /*
  2. *
  3. *
  4. *        The public Color Picker Component messages and routines.
  5. *
  6. *        Created by: Shannon Holland
  7. *        Copyright:    © 1991-1992 by Apple Computer, Inc., all rights reserved.
  8. *
  9. *    History:
  10. *        10-13-91    SAH        Created this file.
  11. *
  12. */
  13.  
  14. #include <Components.h>
  15.  
  16.  
  17. #define        kPickerComponentType        'cpkr'
  18.  
  19.  
  20. /*    the messages a picker is sent */
  21.  
  22. typedef enum
  23. {
  24.     kInitPicker,
  25.     kTestGraphicsWorld,
  26.     kGetDialog,
  27.     kGetItemList,
  28.     kGetColor,
  29.     kSetColor,
  30.     kEvent,
  31.     kEdit,
  32.     kSetVisibility,
  33.     kDrawPicker,
  34.     kItemHit,
  35.     kSetBaseItem,
  36.     kGetProfile,
  37.     kSetProfile,
  38.     kGetPrompt,
  39.     kSetPrompt,
  40.     kGetIconData,
  41.     kGetEditMenuState,
  42.     kSetOrigin,
  43.     kExtractHelpItem
  44. } PickerMessages;
  45.  
  46. /* and now, their corresponding interfaces */
  47.  
  48. pascal long InitPicker(ComponentInstance thePicker,PickerInitData *data);
  49.  
  50. pascal DialogPtr GetDialog(ComponentInstance thePicker);
  51.  
  52. pascal long TestGraphicsWorld(ComponentInstance thePicker,PickerInitData *data);
  53.  
  54. pascal long GetTheColor(ComponentInstance thePicker,ColorType whichColor,PMColorPtr color);
  55.  
  56. pascal long SetTheColor(ComponentInstance thePicker,ColorType whichColor,PMColorPtr color);
  57.  
  58. pascal long DoEvent(ComponentInstance thePicker,EventData *data);
  59.  
  60. pascal long DoEdit(ComponentInstance thePicker,EditData *data);
  61.  
  62. pascal long SetVisibility(ComponentInstance thePicker,Boolean visible);
  63.  
  64. pascal long DisplayPicker(ComponentInstance thePicker);
  65.  
  66. pascal long ItemHit(ComponentInstance thePicker,ItemHitData *data);
  67.  
  68. pascal long GetItemList(ComponentInstance thePicker);
  69.  
  70. pascal long SetBaseItem(ComponentInstance thePicker,short baseItem);
  71.  
  72. pascal CMProfileHandle GetTheProfile(ComponentInstance thePicker);
  73.  
  74. pascal long SetTheProfile(ComponentInstance thePicker,CMProfileHandle profile);
  75.  
  76. pascal long GetPrompt(ComponentInstance thePicker,Str255 prompt);
  77.  
  78. pascal long SetPrompt(ComponentInstance thePicker,Str255 prompt);
  79.  
  80. pascal long GetIconData(ComponentInstance thePicker,PickerIconData *data);
  81.  
  82. pascal long GetEditMenuState(ComponentInstance thePicker,MenuState *mState);
  83.  
  84. pascal long SetTheOrigin(ComponentInstance thePicker,Point where);
  85.  
  86. pascal long ExtractHelpItem(ComponentInstance thePicker,short itemNo,short whichMsg,HelpItemInfo *helpInfo);